package com.lxb.store.service.Impl;

import com.lxb.store.dao.RoleDao;
import com.lxb.store.entity.Role;
import com.lxb.store.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleServiceImpl implements RoleService{

    @Autowired
    private RoleDao roleDao;

    @Override
    public Role getByName(String name) {
        return roleDao.getByName(name);
    }
}
